<div style="width: 100%">
<table style="margin: auto">
 <caption>Cadeiras</caption>
 <thead>
  <tr>
   <th></th>
   <th><a href="/cadeiras/lista/&ord=<?=$m_ord ?>&tipo=2&ind=0">Cadeira</a></th>
   <th>Classificados</th>
  </tr>
 </thead>
 <tbody>
 <?
  if(isset($cadeiras))
  {
  	foreach($cadeiras as $item)
  	{
  		$output = "";
  		$output .= "<tr>";
  		$output .= "<td><a href='/classificados/cadeiras/" . $item['id'] . "'><img width='50' height='50' src='/public/cadeiras/" . $item['id'] . "/" . $item['miniatura'] . "'></img></a></td>";
  		$output .= "<td><a href='/classificados/cadeiras/" . $item['id'] . "'>" . $item['nome'] . "</a></td>";
  		$output .= "<td>" . $item['num_ocorrencias'] . "</td>";
  		$output .= "</tr>";
  		echo $output;
  	}
  }
 ?>
 </tbody>
</table>
</div>